<!--
 * @Author: HC
 * @Date: 2022-04-22 14:42:31
 * @LastEditTime: 2022-04-22 16:32:21
 * @Description:
-->
<template>
  <div class="comparison">
    <div class="table">
      <el-table v-loading="tableLoading" border style="width: 100%" :header-cell-style="{
          background: '#0070C0',
          color: '#ffffff',
          padding: '0',
          height: '26px',
        }" :data="tableData">
        <el-table-column v-for="(item,index) in headerData" :key="index" :label="item" :prop="item" align="center"></el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import $barCodeApi from "@/api/barCode/index";

export default {
  name: "comparison",
  components: {},
  props: {
    form: {
      type: Object,
      default: {},
    },
  },

  data () {
    return {
      tableLoading: false,
      tableData: [],
      headerData: [],
    };
  },
  computed: {

  },
  created () { },
  mounted () { },
  methods: {
    getList () {
      this.tableLoading = true;
      $barCodeApi.getHbCodeNumber({ ...this.form }, res => {
        if (res.code == 0) {
          this.tableLoading = false;
          this.headerData = res.content.area;
          this.tableData = res.content.data;
        }
      });
    },
  },
};
</script>

<style scoped lang="scss">
</style>
